package com.atguigu.gulimall;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/*
    1.引入了amqp场景，使用RabbitMQ
    2.给容器中自动配置RabbitTemplate ,AmqAdmin
    3.@EnableRabbit
    4.监听消息@EnableRabbit
 */
@EnableFeignClients
@EnableRedisHttpSession
@EnableDiscoveryClient
@EnableRabbit
@SpringBootApplication
public class GuilimallOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(GuilimallOrderApplication.class, args);
    }

}
